Encompasses all needed information and control over a task that has been submitted. More...
Public Member Functions | |
ThreadSubmittedWork (Task *task, size_t taskId, Thread *parentThread) | |
ThreadSubmittedWork (const ThreadSubmittedWork &other) | |
~ThreadSubmittedWork () | |
Task * | getTask () const |
size_t | getTaskId () const |
Thread * | getParentThread () const |
bool | cancel () |
bool | operator== (const ThreadSubmittedWork &other) const |
Encompasses all needed information and control over a task that has been submitted.
nkTasks::ThreadSubmittedWork::ThreadSubmittedWork | ( | Task * | task, |
size_t | taskId, | ||
Thread * | parentThread | ||
) |
Constructor.
task | The task submitted. |
taskId | Submitted task's identifier. |
parentThread | The thread to which the task has been submitted. |
nkTasks::ThreadSubmittedWork::ThreadSubmittedWork | ( | const ThreadSubmittedWork & | other | ) |
Copy constructor.
nkTasks::ThreadSubmittedWork::~ThreadSubmittedWork | ( | ) |
Destructor.
Task* nkTasks::ThreadSubmittedWork::getTask | ( | ) | const |
size_t nkTasks::ThreadSubmittedWork::getTaskId | ( | ) | const |
Thread* nkTasks::ThreadSubmittedWork::getParentThread | ( | ) | const |
bool nkTasks::ThreadSubmittedWork::cancel | ( | ) |
Requests the task linked to be cancelled.
bool nkTasks::ThreadSubmittedWork::operator== | ( | const ThreadSubmittedWork & | other | ) | const |
Operator override.